package com.qf.openapi.web.master.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.openapi.web.master.entity.User;
import com.qf.openapi.web.master.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserDao extends BaseMapper<User> {
    Integer insertUser(User user);

    User loginByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    User getUserByUsername(@Param("username") String username);

    Integer selectUserCount();

    List<User> selectAllUsers();

    Integer delUserByIds(@Param("ids") Integer[] ids);

    Integer updateUser(@Param("user") User user);

    User getUserById(@Param("id") Integer id);

    List<User> getUsersByContdition(UserVo userVo);

    Integer addUserByList(@Param("list") List<User> list);
}
